package chapter6.No6_1_立即加载_饿汉模式.demo8;

/**
 * Created by Administrator on 2016/11/25.
 */
public class MyObject {
    private static class MyObjectInner{
        private static MyObject object = new MyObject();
    }
    private MyObject(){}

    public static MyObject getInstance() {
        return MyObjectInner.object;
    }
}
